//package com.loginlib.table.adapter;
//
//import android.content.Context;
//
//import com.loginlib.model.TableBillModel;
//import com.wanhe.base.adapter.TBaseAdapter;
//import com.wanhe.base.adapter.ViewHolderUtil;
//
//import java.util.List;
//
///**
// * Created by Administrator on 2016-08-30.
// */
//public class TableBillAdapter extends TBaseAdapter<TableBillModel> {
//
//    private boolean isSame;
//    private String currTypeNo;
//
//    public TableBillAdapter(Context context) {
//        super(context, R.layout.ordered_meal_insummayr);
//    }
//
//    @Override
//    protected void fillData(ViewHolderUtil var1, int var2, TableBillModel var3) {
//
//    }
//
////    @Override
////    protected int getLayoutId() {
////        return R.layout.ordered_meal_insummayr;
////    }
////
////    @Override
////    protected void bindViewholder(TableBillViewHold holder, TableBillModel data, int position) {
////        holder.tvName.setText(data.getVch_dishname());
////        String price = "￥" + data.getNum_price1() + "/" + data.getVch_unitname();
////        holder.tvPrice.setText(price);
////        holder.tvNum.setText("x" + data.getNum_num());
////
////        setItemTitle(holder, data);
////    }
//
//
////    /**
////     * 设置分类条
////     * @param holder
////     * @param data
////     */
////    private void setItemTitle(TableBillViewHold holder, TableBillModel data) {
////        String typeno = data.getCh_typeno();
////        if (typeno.equals(currTypeNo)) {
////            holder.tvItemTitle.setVisibility(View.GONE);
////        } else {
////            holder.tvItemTitle.setVisibility(View.VISIBLE);
////            holder.tvItemTitle.setText(data.getVch_typename());
////        }
////
////        currTypeNo = typeno;
////    }
//
//
////    @Override
////    protected TableBillViewHold genarateViewHolder(View convertView) {
////        TableBillViewHold hold = new TableBillViewHold();
////        hold.tvName = (TextView) convertView.findViewById(R.id._tvname);
////        hold.tvPrice = (TextView) convertView.findViewById(R.id._tvprice);
////        hold.tvNum = (TextView) convertView.findViewById(R.id._tvnum);
////        hold.tvItemTitle = (TextView) convertView.findViewById(R.id.tv_item_title);
////
////        //设置字体
////        hold.tvPrice.setTypeface(AppContext.getInstance().getC0());
////        hold.tvName.setTypeface(AppContext.getInstance().getC0());
////        return hold;
////    }
////
////    class TableBillViewHold extends CommonBaseAdapter.BaseViewHolder {
////        public TextView tvName;
////        public TextView tvPrice;
////        public TextView tvNum;
////        public TextView tvItemTitle;
////    }
//}
